package homework42;

public class NonExpression extends AbstractExpression{
    private AbstractExpression left;//左表达式
    private AbstractExpression right;//右表达式

    public NonExpression(AbstractExpression left,AbstractExpression right){
        this.left = left;
        this.right = right;
    }

    @Override
    public String interpret() {
        return left.interpret() + right.interpret();
    }
}
